fixed missing function call