slight change to matrix