fix #358, adding methods to Comparable