works for w_p=0. For w_p>0, for some reason it breaks down. Sign of phi_p???