compute class modifications