minimise the indexed classes