changed how mediaId property is defined