modified DuplicateChecker, reformated code
formatted code