trying to make reset() reduce memory usage