error correction

script is now working