cleaned the script