update parameters.