putting events into a table