adding new time event functionality