beforeMacChange