corrected the script