fixed coordinate frames, slight change to lm