fixed misspelled function implementation