updated duplication check to new usage