add function to get all the categories