change function syntax keywords to func

function keyword have a little long :-)
update script kp file to use func keyword