change else if to if