element queries in correct location