categories now fully working