boundary fixed and first sketch of temperature sampling