updated for many nodes