reset heap and mem values