remove symmetry assumption i,j=j,i