changed to string-concatenated double query