working on adding indexreduce