adding  collapsed sampling for normalized GLM