compare a with b