change node state to three levels: all, partial, none