removed getNexthop I wrote which is unnecessary