modified app.py slightly