oved category rounding from map to reduce function.