same categories function does not belong in the model.