model.js updated