now creates adds shortest node from both sides of the path