adding head information to all branches