adding methods to data analysis