rename register macro