tuning the data scripts