update the class