small changes for max_temp