added macro qw