finetuning memory layout