Removing useless code (getCategories still not working)