Revert "modified hw.c"

This reverts commit 000523a5ea4c234fd71210fa1221854ab4b94704.