update to registryAdd