function used in several places where hard reset is not need