adjusted w(i,j)