made some small changes to main.py