made deep copy of dict