nearly there with updating attachments