required queries added
merge