adding list query stuff
adding merged