working before class state