added parenthes on expression in if statement