update classes map