optimize code for adding new cities