define $m macro to have the domain part of $w