min h and w index