clone with memory