add Paul read design matrix code.