simplify diagram