implementing LM