added perimeter support