fixing duplicates for pics and files