remove unnecessary else clause