changed temp_c output to int from float