added -a reduce flag