adding the file attribute to the item