cleaned up mac_learning