added length intake in app.js