reduce memory footprint of init procedure