categories and complexity