added additional funtionallity for wrong inputs