added a variable to store failed classes during index creation