updates before class