auto class map