changed data_reduction.py