added function to get the MAC address