commit before class