working on the script code