changed media field reference to media_name
merged