fixed typo in func