first stab at an lmer function