some work on dom tree