tweaking final script