script for data analysis