update to models.js