rewrote tempconv to have a less convoluted logic path and remove redundancy