implemented IndexScan