main.py modified