reduce utils.py