correct query string