refactoring listcities