working on integrating IndexReduce