re-implemented in categories controller