add update_params to prevent changes lost