removing bugs from removeDuplicate