modefied FactoryBubble constructor