add function getNodes on BuildNodes