added root prop to callback