write events