fixed product gen
added to product gen code