created mechanism for city conversion