replace deep clones with shallow clones for great performance