-changes for finding duplicate elements