a quick implmentation of lcmr