method call in script