modify script generating