adding glm test to teh code. need something that can incorporate random effects