more changes made to the script
- was able to get a successful run using this script