fixed missing function