adding a query to get all pending changes more simply