convert createLink to addDefinition