remove unnecessary else statement