update sample script