fitting a square