corrected typos in funcs