added support for insert select