entity comparison