tweaks of prod functions