merging else with the if