add copy method for Dynamic