renamed OrganizeMedia function