change matrix mutation method