added server rendering optional function/ permited null as child