added reset mode