used a getter for the style of the childreren