added definition of matching histo