add attachment function