using mediator for categories