make index perfect