save for branch switch