compare a to b