added the else statement