add category registration function