fix some parameters and misspelling