updates to index and mallet