re-ran script with error reporting fixed