change ref in macroses