edits to shortest path section
minor edits