modified example script