fixed version of app.py