better index and inc setup