modify dict