+Fixed TODO
+Create comparebeta2
to test to enhance the compare function