determine the periphery