improved memory footprint