added perimeter