update todo and write reformat