implemented executeSelect