new script for data analysis