oops, query wasn't quite right