nested working with hardcoded number of categories