error in compact_mac