made charclass immutable