updated node examples with proper indexing.