fixed queryMac variable