updated query strings for errors