execute neighborhood polygon function only once.