diary detail function 80%