if statement moved to right line