declaration for event logging