modify dict method