manage memory better for handling of larger data sets