updated to include new timedEvent method