put method before app.run