added reset state