handling invalid city