fix misspelling, replaces a deprecated function