fixing typo on function names