how is heat produced ?