made compare() not necessary for primitives