replaced three methods in utility.js by lodash implementations