made matrix global, allows for incremental value changes