decreased memory usage drastically