should pass typeof "function"