simplify legend