remove duplicated matches