update class map