completed the script