added fun. to convert a tree to satisfy children sum prop