matrix is not written during online step