more idiomatic use of Q