removing useless elsif