optimizing node correction