ending comparison