right before class changes