add "mediaByUser" definition