reduce memory usage in both scan