notes and execquery changes
merged
loop through vector