add writing events