compose attachments