typo function fix