remove useless else statement