updated seriate version
query generator