v2 of apply_h parallel