added check on last hop for dest reached