update get mac address method.