added copy function to _dict