wrote script