fixed function name type error