speed improvement for object cloning