add writing statistics