change ignoredups to erasedups