trying to reduce memory footprint