markNode does the work