alter sample code. Using the new version enode version.