update #261 for gamma_du + add option to compare easily with/without optimization