better perfomance on get categories