converted characterErrorModel to class
sloved all the slef/class related errors