adding events from timing codes