modify A_master, B_branch