removing media attribute