removed unncessary else statement in elsif