changed categories to terms_names