fixed error in else statement line 40