shortened all paths