function syntax changed for HMscript
function syntax changed for HMscript