categorizing people by their position and city