convert temp to scratch