finished first version of attachments