better index helper