fixed else statement