update the data structure of a product