update document to include path ranking