add pick function