clean myfunc def for nsca