improve AddNearAgent