add func to lm base