update creating dict method