simplify getContentClass