updated parseCitiesWhile()