attempt to add functions to utils\math.js