updated the consensus query