modify mac_free