improved `mtx` macro