add dict copy method