improve process.py