create cancel edge not in loop but when output