added shell script to run reduce