moved required if