minimalize the index