made widgetProductionFactory conform to grammar