added reset pin to state