#12 update the perimeter value