added maximal rectangle