preprocessing.py: change time interval to context