added event tracking