correctly finds dom elements