fixing bug
revert to using reduce as per RSG
Merge pull request #191 from mdsol/fix_semantic_bug

fix for semantic bug