adding the hash to the media item