added toText and removeNode