remove tri-branching