rewrite the 'reset' function