please open script function