updated reset snippet