formatting the script file