added reset and typeset