update HW code