adjusting consensus calculation to be faster