now detecting duplicates

style changes