move if to single line