added a resetpatient function to fix a temp_ele bug
-->full functionality