try to reduce memory usage