added minInd functions