added timer and event