algorit for hotness is working