put the function as a script