object cloning before saving