reformatting categories list