trying to understand DOM