clone table instead of using the original def reference