move models utils.js