preprocessing.py modified