fixed misspelled forEach function