remove unnecessary classes from index