further improvements; corrections to how params are updated