fixing the script