before class commit