Refactoring and changed incorrect parameters error message