Revert "Remove duplicate()"

This reverts commit f639f1240c2b1fc71afbc2c4a8f4a8b8813d20a2.