added a missing function definition