debugged beta(0)=0 prior