before class update