move if statement