add a space after if, and put brackets around the body of if and else.