format the script