simple error handling for product type