rev mac & typedef