refactor-change getcategoriesById to getcategoryById