correcting class attribute