broken code - keep the whole dataset in memory

keep the whole dataset in order to be able to subset some data