moved functions into utils.js updated function calls
version 1.4