add support for range query