simplify dom print