commented out final write to file so it can be run by others