tweaking these scripts