minor changes in updateparameters