add node class snippet