query range is now inclusive on both sides