fixed missing function error