makes perimeter measure faster (by using lut)