cleaned up the index