updating cityClass and mapClass