perimeter constraint setup