save , and improve speed of handling dupes