method for not overwriting attachments