syntax error of if statement