show and store perimeter