merge and update bar