got basic index working