add in another function to app.js