typo in the if statement