re-write input/product_type