change back to waitForElement