fixed typo for function