got index working