moving code to app.js