handled empty query string