fix missing function error