add code of lr