change getCategoryById to getCategory