this script does not do its work correctly, even to read the r value it is not the readable r value found in the duplicate