datanode code