update built-in method using macros