add missing function