combined functions, converted to queryselector