make index dynamic