divert procedure