Changing the placement of the initialization of prod