clean beta_offset and tc_offset