final index creation