re-adding hcreset code