fixed the spelling of function in greg's post