improving script for experiments