update code samples for node