turned environment into a product type