correct 'function' spelling