fixed up reduction
added in run.sh