addition of explanation and else statement