handled invalid query string cases