update the LR model