simplify doctrine&media