implement most constrained square