removed unnecessary else condition