optimizing processed nodes