minor code tweak.
fixed typos.