simple scalar comparator