discharge procedures