added missing function arguments