made param bag inherit bag