new definition of gen matching histogram