reorganization of memory layout