added event compilation