updates the classes