added conditionals for +50 classes.