modify the script for simple