fixed the script