revert values to original matrix