removing duplicated lines mechanism

step 3 in the manual cutting process