modify mixin to delete media class