improving script