update classes and fields