before change the memory into 2 parts