add the weight calculation of W_0
test the fourier part