fixed data processing to produce real matrices instead of compounded lists