changed where script method is called