fixed typo
added missing function arguments, corrected typo