update query string for type criteria