change the if position