change query processor to read from vector