updating function name in Category class