corrected error in w.f. for theta\neq 0