consolidated lm container population to one function