swap back to memory