implement deepCopy for custom tuple rule