erase the repeated section