updated getProducts method