add class exception