updates to utility.js