removed unnecessary else block