macro replaced check