moving reject code function