revert HAL changes