stupid matrix formatting