coped with inversed branch.