rm deprecated else statement