modify dict structure