correct the else statement in pseudo code