better rectangle for valid match