added reset to scanner example