trying to set resetcode back to null