use different format for looping through each datanode