add internal transition,bugs in extracting line