merging update before class