added pause and reset