script as function