generotor -> dict