update dict