returned attachments has name after original file
change name of variables to be more descriptive