correct reducer.py