adjust comments and check child nodes' impurity