overwrites same file if contains different names but content is the same.