modified main.py slightly