compare bases