change the way to purge partition. using copy constructor instead.