change from single object to array of objects and change name from product to products