cleaned up data analysis