detects class changes