changed query result type