nix unused member variable
simplify logic. remove incorrect setting reset