modify diary and index