linking the attachments