add beta_constraints to smalldata