changed template class for categories