working more
working now with duplicates