update dict.