updating remaining paths