Updating the values of the dictionary