automatic query added