working on reset code