style(index): code cleanup