updated sample script