joined matrix, fixes new line bug