fixed lm stuff