compare a with b.