created else statement in function