used a FunctionScript instead