added category manager function.