implemented Node.normalize()