removed extra semicolon in if else statement