updated the attachment feature