upgrade classes