update comparison operator to use <=>