modify the registry code