render nodes at correct positions