a few updates have been made to the script file