fixing else statement