fix missing function