tweaking the script