implemented else with message