renamed category parameter to category_id