make dom traversal faster