added node state to snippet