revise the script