add class attribute