deal with duplicate entry