new code to app.js