use updated event attribute syntax