fixed many bugs on new HV generalization (many more to go)