public static void recursionTreeSync(Node root){
        try {
            root.compute();
        } catch (IOException e) {
            e.printStackTrace();
        }
        if(root.hasChildren()){
            for (Iterator<Node> iterator = root.children.iterator(); iterator.hasNext(); ) {
                Node nextNode =  iterator.next();
                recursionTreeSync(nextNode);
            }
        }else {
            return;
        }

    }