perimeter is measured in square units