making it so that you can pass in a category