reduce memory usage more