change id from name to pubID