modified sample script