updated querycds to search by position