add branch ID for nodes