put getId in categories
delete useless code