more data analysis code