class attribute should only appear once