got rid of memory error from loading data into RAM