add key to macro definition