moved
small changes, and note that we're not looking at 'median query'