update media class