add coordinate index and new type of queries