removed the second argument "$parameters" of addError method