add any() around resHess$code test