update params and minor change