clean up extra spacing in matrix_add