updated with temp in c