refactor matlab event names