updating classmap