added poly2beta_B