prepare for branch