changed Product createFunction