added method for data crunching

to be continued...