renamed category to categories where necessary