heatbath and acceptance step for ndrat working