removed obsolete code line, fixed spelling of a new function name