addd missing function