added code options for collapsed data matrices