added query2i and fetch