use a vector to store attachments