refactor utils.js