updating dict