remove unnecessary else