tweaked the query when initializing map to include department