update parameters in the routine