updated before class