got rid of useless else statement