changed how we check for the destination branch