refactor Dictionary initializing