update resetcodet to null