corrected updateNames