further improving memory footprint