update middleclass