change first and first_beta_a