more useful dom function in an easy way.