missing function fixed