erroring in model matrix but na preserve almost working