update function in lm