deleted extra code from model.js