Updates childrenOf method