removed unnecessary elif