removed deprecated allowDups