minor typo fixes to functions